/*
 * mg90s.h
 *
 *  Created on: 2024 Mar 18
 *      Author: simeonidi03
 */
#include "at32f403a_407.h"
#include <string.h>
#include <stdint.h>

extern uint16_t channel3_pulse_3, channel4_pulse_3;

#define NULL_SERVO 32
#define ONE_HUNDRED_SERVO 130

//in default case
#define NULL_SERVO_DEF 975
#define ONE_HUNDRED_SERVO_DEF 875

#define SERVO_BY_PORT_B0 2
#define SERVO_BY_PORT_B1 1



#ifndef INCLUDE_MG90S_H_
#define INCLUDE_MG90S_H_


void servo_val_set(size_t value, uint16_t timer_period, uint8_t servo_number);


#endif /* INCLUDE_MG90S_H_ */
